.contacts-container {
    position: relative; /* for mobile/tablet*/
    height: 100%;
    z-index: 0;
}

.contacts-panels {
    display: flex;
    flex-direction: row;
    height: calc(100% - #{$contactsToolbar});
}

[selected-contact] {
    display: block;
    height: 100%;
}

.contactDetails-container { height: 100% }
.contactDetails-container > * { padding: 0 15px }

.contactList-container {
    position: relative;
    flex: 1;
    order: 0;
    overflow: auto;
    border-right: 1px solid rgba($border, .1);
    background:  rgba($border, .05);
    z-index: 100;
    display: flex;
    align-items: baseline;
}

.contactList-table {
    background: #FFF;
    box-shadow: 0px 1px 2px rgba($border, .2);
}

.contactList-table .contactList-thead { border-top: 0 }
.contactList-table .contactList-thead th {
    border-bottom-width: 2px;
    white-space: normal;
}

.contactsDetails-container,
.contactPlaceholder-container {
    flex: 1;
    order: 1;
    overflow: auto;
}


.contacts-container.contacts-empty .contacts-list,
.contacts-container.contacts-empty .contactsDetails-container { height: 100% }

[id="secured-contacts-details"].appConfigBody-is-tablet .contactsToolbar-contactGroup,
[id="secured-contacts-details"].appConfigBody-is-mobile .contactsToolbar-contactGroup,
[id="secured-contacts"] .contactsDetails-container,
.contacts-container.contacts-empty .contactsToolbar-container,
.contacts-container.contacts-empty .contactPlaceholder-container,
.appConfigBody-is-tablet .contactPlaceholder-container,
.appConfigBody-is-mobile .contactPlaceholder-container { display: none }

.appConfigBody-is-tablet .contactsDetails-container,
.appConfigBody-is-mobile .contactsDetails-container {
    position: absolute;
    z-index: 100;
    left:0;
    top:0;
    height: 100%;
    width: 100%;
    background: #FFF;
    overflow: visible; /* keep toolbar at top on mobile*/
}

body:not([id*="secured-contacts"]) {
    .sidebarLabels-manageGroup[data-mode="create"] {
        display: none
    }
}

.appConfigBody-is-tablet .contactDetails-details,
.appConfigBody-is-mobile .contactDetails-details {
    /* keep toolbar at top on mobile*/
    height: 100%;
    overflow: auto;
}
